"""
def triangles(n):
    L = [1]
    while len(L) < n:
        yield L
        L.append(0)
        L = [L[i - 1] + L[i] for i in range(len(L))]
for it in triangles(10):
	print(it)
g = (x * x for x in range(10))
for n in g:
     print(n)
"""
def triangles(n):
	L=[1]
	while len(L)<n:
	     	yield L
	     	L.append(0)
	     	L=[L[i-1]+L[i] for i in range(len(L))]
for i in triangles(5):
	print(i)	     	     

print('123'[::-1])